package com.squirrel.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * UserComment 用户评论
 * </p>
 *
 * @author 关远键
 * @since 2021/11/11 16:06
 */
@Data
@TableName("user_comment")
@ApiModel(value = "UserComment对象", description = "")
public class UserComment extends Model<UserComment> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户相关评论id")
    @TableId(value = "user_comment_id", type = IdType.AUTO)
    private Integer userCommentId;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("评论id")
    @TableField("comment_id")
    private Integer commentId;

    @ApiModelProperty("是否点赞(0为不点赞 1为点赞)")
    @TableField("is_good")
    private Integer isGood;

    @ApiModelProperty("是否踩他(0为不踩他 1为踩他)")
    @TableField("is_not_good")
    private Integer isNotGood;


    @Override
    public Serializable pkVal() {
        return this.userCommentId;
    }

}
